

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.BusinessLogic;

namespace Yozeev.EntityMapper.CommonCustomers
{
    public class CommonCustomerCfg : IEntityTypeConfiguration<CommonCustomer>
    {
        public void Configure(EntityTypeBuilder<CommonCustomer> builder)
        {

			 
         builder.ToTable("CommonCustomers", YoYoAbpefCoreConsts.SchemaNames.Common);

			//可以自定义配置参数内容

			//// custom codes
			builder.Property(a => a.MainCustomerId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.ViceCustomerId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.CustomerName).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.Mobile).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.Sex).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.CertificatesNum).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.VerifiableType).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);



			//// custom codes end
		}
    }
}


